import allure

from api.auth import AuthAPI


class TestCompanyBaseinfo:

    # 前置处理
    def setup_method(self):
        self.auth_api = AuthAPI()

    @allure.title("企业三要素精准认证接口")
    def test01_success(self):
        data = {
            "legalName": "胡建超",
            "companyName": "邻水县牟家镇建超电器经营部",
            "companyCode": "92511623MA64HMN359",
            "merchantId": "00013243DEF34E17A24D6EBD287097D1",
            "serviceCode": "agent"
        }
        res = self.auth_api.companyBaseinfo(data=data)
        assert 200 == res.status_code
